﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sealight.Core.Common;
using Sealight.Core.DataAdapter;

namespace Sealight.Core.Domain
{
    public  class MenuEntity
    {
        public virtual Guid MenuID { get; set; }
        public virtual string Title { get; set; }
        public virtual string Description { get; set; }
        public virtual MenuSource Source { get; set; }
        public virtual string NavigationURL { get; set; }
        public virtual int Order { get; set; }
        public virtual LanguageEntity Language { get; set; }
        public virtual menu ToDataAdapter()
        {
            menu entity = new menu
            {
                id = this.MenuID,
                title = this.Title,
                description = this.Description,
                source = this.Source,
                navigation_url = this.NavigationURL,
                order = this.Order,
                language = this.Language.ToDataAdapter()
            };

            return entity;
        }
    }
}
